package top.continew.admin.sport.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import top.continew.admin.sport.model.resp.ProjectEntryExcel;
import top.continew.admin.sport.model.resp.ProjectEntryResp;
import top.continew.starter.data.mybatis.plus.base.BaseMapper;
import top.continew.admin.sport.model.entity.ProjectEntryDO;

import java.util.List;

/**
* 报名 Mapper
*
* @author xiahaike
* @since 2024/09/15 02:01
*/
public interface ProjectEntryMapper extends BaseMapper<ProjectEntryDO> {
    IPage<ProjectEntryResp> myPage(@Param("page") IPage<Object> page,
                                   @Param(Constants.WRAPPER) QueryWrapper<ProjectEntryDO> queryWrapper,
                                   @Param("projectId") Long projectId);

    List<ProjectEntryExcel> myList(QueryWrapper<ProjectEntryDO> queryWrapper,@Param("projectId") Long projectId);
}